package com.iespring.bean.admin.region.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

/**
 * @author weigwen
 * @Description:
 * @Date 2022/12/28 23:01
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
public class RegionVo {

    /**
     * id : 2
     * name : 天津市
     * type : 1
     * code : 120000
     * children : [{"id":33,"name":"市辖区","type":2,"code":120100,"children":[{"id":392,"name":"和平区","type":3,"code":120101},{"id":393,"name":"河东区","type":3,"code":120102},{"id":394,"name":"河西区","type":3,"code":120103},{"id":395,"name":"南开区","type":3,"code":120104},{"id":396,"name":"河北区","type":3,"code":120105},{"id":397,"name":"红桥区","type":3,"code":120106},{"id":398,"name":"东丽区","type":3,"code":120110},{"id":399,"name":"西青区","type":3,"code":120111},{"id":400,"name":"津南区","type":3,"code":120112},{"id":401,"name":"北辰区","type":3,"code":120113},{"id":402,"name":"武清区","type":3,"code":120114},{"id":403,"name":"宝坻区","type":3,"code":120115},{"id":404,"name":"滨海新区","type":3,"code":120116},{"id":405,"name":"宁河区","type":3,"code":120117},{"id":406,"name":"静海区","type":3,"code":120118},{"id":407,"name":"蓟州区","type":3,"code":120119}]}]
     */

    private Integer id;
    private String name;
    private Integer type;
    private Integer code;
    private List<RegionVo> children = new ArrayList<>();

}
